package com.ssmdemo.service.imp.empimpl;


import com.ssmdemo.dao.BaseMapper;
import com.ssmdemo.service.BaseService;

import java.util.List;

public abstract class BaseServiceImp<T> implements BaseService<T> {

    public abstract BaseMapper<T> baseMapper();

    public Integer add(T t) {
        return baseMapper().add(t);
    }

//    public PageInfo<T> selectPage(Integer pageNum, Integer pageSize) {
//        PageHelper.startPage(pageNum,pageSize);
//        List<T> list=baseMapper().select();
//        PageInfo<T> pageInfo=new PageInfo<T>(list);
//        return pageInfo;
//    }


    public T selectId(Integer id) {
        return baseMapper().selectId(id);
    }

    public Integer update(T t) {
        return baseMapper().update(t);
    }

    public Integer delect(Integer id) {
        return baseMapper().delect(id);
    }
}
